package com.panshi.modules.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户收藏对象", description="")
public class UserCollect {

    @ApiModelProperty("收藏表ID")
    private Long id;

    @ApiModelProperty("关联ID(文章,问题)")
    private Long tId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("收藏时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("区分资讯还是问题  类型")
    private int type;

    @ApiModelProperty("文章,问题标题")
    private String title;

    @ApiModelProperty("阅读数量")
    private int readNum;

    @ApiModelProperty("收藏数量")
    private int collectNum;

    @ApiModelProperty("评论或者回答数量")
    private int commentAnswerNum;

}
